package com.secsys.model;

import java.util.Date;

/**
 * 对应于数据表：tb_sto_rationedshares【四】配股表,描述：记录每股每年度是否曾经配股或送股
 *@作者 tiger.hu.tiger@gmail.com
 *@创建日期 2011-5-1
 *@版本1.0
 */
public class TbStoRationedshares implements java.io.Serializable {

	// Fields

	private static final long serialVersionUID = -7611934373058988364L;
	private Integer id;
	private TbStoStock tbStoStock;
	private Date allotDate;
	private Short type;
	private Double ratio;

	// Constructors

	/** default constructor */
	public TbStoRationedshares() {
	}

	/** minimal constructor */
	public TbStoRationedshares(TbStoStock tbStoStock, Date allotDate,
			Double ratio) {
		this.tbStoStock = tbStoStock;
		this.allotDate = allotDate;
		this.ratio = ratio;
	}

	/** full constructor */
	public TbStoRationedshares(TbStoStock tbStoStock, Date allotDate,
			Short type, Double ratio) {
		this.tbStoStock = tbStoStock;
		this.allotDate = allotDate;
		this.type = type;
		this.ratio = ratio;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public TbStoStock getTbStoStock() {
		return this.tbStoStock;
	}

	public void setTbStoStock(TbStoStock tbStoStock) {
		this.tbStoStock = tbStoStock;
	}
	/**
	 * 除息日期
	 * @return
	 */
	public Date getAllotDate() {
		return this.allotDate;
	}
	/**
	 * 除息日期
	 * @return
	 */
	public void setAllotDate(Date allotDate) {
		this.allotDate = allotDate;
	}
	/**
	 * 类型：配股、送股、转
	 * @return
	 */
	public Short getType() {
		return this.type;
	}
	/**
	 * 类型：配股、送股、转
	 * @return
	 */
	public void setType(Short type) {
		this.type = type;
	}
	/**
	 * 比率：Ratio的比例是指，十送了多少的多少，比如十送三，则ratio是3
	 * @return
	 */
	public Double getRatio() {
		return this.ratio;
	}
	/**
	 * 比率：Ratio的比例是指，十送了多少的多少，比如十送三，则ratio是3
	 * @return
	 */
	public void setRatio(Double ratio) {
		this.ratio = ratio;
	}

}